package com.atwj.dao;

import com.atwj.entity.Book;

import java.util.List;

/**
 * @author 吴先森
 * @description: 进行book页面的增删改查操作
 * @create 2022-03-23 14:36
 */
public interface BookDao {
    public int addBook(Book book);

    public int deleteBookByid(Integer id);

    public int updateBook(Book book);

    public Book queryBookByid(Integer id);

    public List<Book> queryBooks();

    Integer queryForPageTotalCount();

    List<Book> queryForPageItems(int begin, int pageSize);

    Integer queryForPageTotalCountByPrice(int min, int max);

    List<Book> queryForPageItemsByPrice(int begin, int pageSize, int min, int max);
}
